﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VideoCategoryInputModels>" %>

<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết chuyên mục video
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

     <%if (ViewData["MessageInfo"] == null)
      { %>
    <table class="admintable" width="100%">
        <tbody>
<%--            <tr>
                <td class="key">
                    Phân mục
                </td>
                <td>
                    <%= string.IsNullOrEmpty(Model.ParentCatName) ? "--" : Model.ParentCatName%>
                </td>
            </tr>--%>
            <tr>
                <td class="key">
                    Tên chuyên mục
                </td>
                <td>
                    <%=Html.Encode(Model.Category.Name) %>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Tên viết tắt (<font color="red">*</font>)
                </td>
                <td>
                    <%=Model.Category.ShortName%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Mô tả
                </td>
                <td>
                    <%=Model.Category.Description%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Thứ tự ưu tiên (<font color="red">*</font>)
                </td>
                <td>
                    <%=Model.Category.Priority%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Trạng thái hiển thị
                </td>
                <td>
                    <img alt="" id="imgActiveYN_<%= Model.Category.ID %>" onclick="ChangeNewYN(<%= Model.Category.ID %>);"
                        value="<%= Model.Category.ActiveYN %>" src="<%= Model.Category.ActiveYN ? "/Images/icon-32-apply.png" : "/Images/icon-32-cancel.png" %>" />
                </td>
            </tr>
        </tbody>
    </table>
    <%} %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Sửa", "/VideoCategory/Edit/" + Model.Category.ID, "edit") %>
    <%= Html.Toolbar("Xoá", "/VideoCategory/Delete/" + Model.Category.ID, "delete")%>
    <%= Html.Toolbar("Quay về", "/VideoCategory", "back")%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Chi tiết chuyên mục video
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
